InboxType
PackageAxial.ElmishFlows
Constructs, fills and reads an Inbox`1.
Specification
Kind
Type
Members
11
Examples
0
scopedWithSignature
Inbox.scopedWith strategy
scopedSlidingSignature
Inbox.scopedSliding capacity
scopedDroppingSignature
Inbox.scopedDropping capacity
scopedBoundedSignature
Inbox.scopedBounded capacity
scopedUnboundedSignature
Inbox.scopedUnbounded ()
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Create inboxes | ||
| scopedWith | Inbox.scopedWith strategy | An inbox whose queue is shut down when the current scope closes, with the given strategy. |
| scopedSliding | Inbox.scopedSliding capacity | A non-blocking inbox in which the newest pending value survives a burst; the oldest is dropped. |
| scopedDropping | Inbox.scopedDropping capacity | A non-blocking inbox in which the oldest pending value survives; a newer offer is dropped. |
| scopedBounded | Inbox.scopedBounded capacity | A lossless inbox in which an offer waits while the mailbox is full. |
| scopedUnbounded | Inbox.scopedUnbounded () | A lossless inbox that never waits; memory grows with the backlog. |
| create | Inbox.create capacity runtime | An inbox shut down by the runtime instead of a scope, for a host that already holds the runtime. |
| Offer values | ||
| post | Inbox.post value inbox | Offers a value; returns whether the mailbox took it, false when it is full or shut down. |
| offer | Inbox.offer value inbox | The same offer, as a command for update to return. |
| Read the mailbox | ||
| stream | Inbox.stream inbox | The mailbox as a stream: every accepted value, in the order it was offered. |
| dropped | Inbox.dropped inbox | Values the mailbox could not keep, whether refused or evicted by a sliding mailbox. |
| Dropped | this.Dropped | Values the mailbox could not keep: an offer refused while it was full, or the pending value a sliding mailbox evicted to take a newer one. |
Create inboxes
Build the mailbox in the scope that will shut it down, naming its overflow strategy.
kind:membertask:create
kind:membertask:create
kind:membertask:create
kind:membertask:create
kind:membertask:create
Offer values
Hand values to the program from update or from a synchronous callback.
kind:membertask:offer
Read the mailbox
Read values as a stream and count the offers a full mailbox could not keep.
kind:membertask:read
kind:membertask:read

